<form class="form-horizontal" method="post"
	action="${cxt!}/admin/paymentplugin/update" id="searchForm">
	<input type="hidden" name="paymentPluginConfig.id"
		value="${paymentPluginConfig.id!}" /> <input type="hidden"
		name="paymentPluginConfig.pluginid"
		value="${paymentPluginConfig.pluginid!}" />
	<div class="form-group">
		<label for="namebasic" class="col-md-2 control-label">${_res["payment.plugin.name"]}</label>
		<div class="col-md-10">
			<input type="text" class="form-control" name="paymentPluginConfig.name"
				placeholder="${_res['payment.plugin.name']}"  value="${paymentPluginConfig.name!}" required aria-required="true">
		</div>
	</div>
	<div class="hr-line-dashed"></div>
	<div class="form-group">
		<label class="col-md-2 control-label">${_res["payment.plugin.status"]}</label>
		<div class="col-md-10"><#dict type="select"
			name="paymentPluginConfig.status" dictCode="COMMON_STATUS"
			defaultValue="${paymentPluginConfig.status!}"/></div>
	</div>
	<div class="form-group">
		<label class="col-md-2 control-label">${_res["payment.plugin.orders"]}</label>
		<div class="col-md-10">
			<input type="text" class="form-control"
				name="paymentPluginConfig.orders"
				placeholder="${_res['payment.plugin.orders']}"
				value="${paymentPluginConfig.orders!}" required aria-required="true">
		</div>
	</div>

	<div class="hr-line-dashed"></div>
	<%for (attribute in paymentPluginConfig.attributes){%>
	<div class="form-group">
		<label for="namebasic" class="col-md-2 control-label">${_res[attribute.resKey!]}</label>
		<div class="col-md-10">
			<% if (FORM_INPUT_TEXTAREA == attribute.fieldtype){%>
			<textarea class="form-control" rows="3" cols="9" name="paymentPluginConfigAttribute${attribute.id!}.value" placeholder="${_res[attribute.resKey!]}">${attribute.value!}</textarea>
			<%}else if (FORM_INPUT_SELECT == attribute.fieldtype){%>
			 <#dict type="select" name="paymentPluginConfigAttribute${attribute.id!}.value" dictCode="${attribute.fieldvalues!}" defaultValue="${attribute.value!}"/>
		    <%}else{%>
		     <input type="text" class="form-control" name="paymentPluginConfigAttribute${attribute.id!}.value" placeholder="${_res[attribute.resKey!]}" value="${attribute.value!}" required aria-required="true">
			<%}%>
		</div>
	</div>
	<div class="hr-line-dashed"></div>
	<%}%>

	<div class="hr-line-dashed"></div>
	<div class="form-group">
		<label class="col-md-2 control-label">${_res["payment.plugin.description"]}</label>
		<div class="col-md-10">
			<textarea class="form-control" rows="3" cols="9"
				name="paymentPluginConfig.description" placeholder="${_res['payment.plugin.description']}" >${paymentPluginConfig.description!}</textarea>
		</div>
	</div>

	<div class="hr-line-dashed"></div>
	<div class="form-group">
		<div class="col-md-10 col-md-offset-5">
			<% if(hasPrivilegeUrl("Payment_Plugin_search")){ %>
			<button type="button" class="btn btn-warning"
				onClick="ajaxContent('/admin/paymentplugin');">${_res["system.return"]}</button>
			<% } %> <% if(hasPrivilegeUrl("paymentplugin_update")){ %>
			<button type="submit" class="btn btn-warning">${_res["system.submit"]}</button>
			<% } %>
		</div>
	</div>
</form>
<#submit formId="searchForm" divId="content" />